package com.dangdang.entity;

import java.util.Date;

public class Book {
    private Integer id;
    private Integer cid;
    private String name;
    private Double price;
    private Date date;
    private Integer inventory;
    private String author;
    private Integer salenum;
    private String messages;
    private Double dangPrice;
    private String image;
    private Category category;

    public Book() {
    }

    public Book(Integer id, Integer cid, String name, Double price, Date date, Integer inventory, String author, Integer salenum, String messages, Double dangPrice, String image, Category category) {
        this.id = id;
        this.cid = cid;
        this.name = name;
        this.price = price;
        this.date = date;
        this.inventory = inventory;
        this.author = author;
        this.salenum = salenum;
        this.messages = messages;
        this.dangPrice = dangPrice;
        this.image = image;
        this.category = category;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getCid() {
        return cid;
    }

    public void setCid(Integer cid) {
        this.cid = cid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public Integer getInventory() {
        return inventory;
    }

    public void setInventory(Integer inventory) {
        this.inventory = inventory;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public Integer getSalenum() {
        return salenum;
    }

    public void setSalenum(Integer salenum) {
        this.salenum = salenum;
    }

    public String getMessages() {
        return messages;
    }

    public void setMessages(String messages) {
        this.messages = messages;
    }

    public Double getDangPrice() {
        return dangPrice;
    }

    public void setDangPrice(Double dangPrice) {
        this.dangPrice = dangPrice;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public Category getCategory() {
        return category;
    }

    public void setCategory(Category category) {
        this.category = category;
    }

    @Override
    public String toString() {
        return "Book{" +
                "id=" + id +
                ", cid=" + cid +
                ", name='" + name + '\'' +
                ", price=" + price +
                ", date=" + date +
                ", inventory=" + inventory +
                ", author='" + author + '\'' +
                ", salenum=" + salenum +
                ", messages='" + messages + '\'' +
                ", dangPrice=" + dangPrice +
                ", image='" + image + '\'' +
                ", category=" + category +
                '}';
    }
}
